Message List Adapter
MessageListAdapter provides a binding from a BaseMessage type data set to views that are displayed within a RecyclerView.
Constructors
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun MessageListAdapter(@Nullable channel: GroupChannel, useMessageGroupUI: Boolean)
Content copied to clipboard
Link copied to clipboard
open fun MessageListAdapter(@Nullable channel: GroupChannel, @NonNull messageListUIParams: MessageListUIParams)
Content copied to clipboard
Functions
Link copied to clipboard
open fun getFormSubmitButtonClickListener(): FormSubmitButtonClickListener
Content copied to clipboard
Returns a callback to be invoked when the Form submit button is clicked.
Link copied to clipboard
open fun getMessageTemplateActionHandler(): OnMessageTemplateActionHandler
Content copied to clipboard
Register a callback to be invoked when the message template action is clicked.
Link copied to clipboard
Returns a callback to be invoked when the suggested replies is clicked.
Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: MessageViewHolder, position: Int)
Content copied to clipboard
Called by RecyclerView to display the data at the specified position.
Link copied to clipboard
open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): MessageViewHolder
Content copied to clipboard
Called when RecyclerView needs a new MessageViewHolder of the given type to represent an item.
Link copied to clipboard
open fun setFormSubmitButtonClickListener(@Nullable formSubmitButtonClickListener: FormSubmitButtonClickListener)
Content copied to clipboard
Register a callback to be invoked when the Form submit button is clicked.
Link copied to clipboard
open fun setMessageTemplateActionHandler(@Nullable messageTemplateActionHandler: OnMessageTemplateActionHandler)
Content copied to clipboard
Register a callback to be invoked when the message template action is clicked.
Link copied to clipboard
open fun setSuggestedRepliesClickListener(@Nullable suggestedRepliesClickListener: OnItemClickListener<String>)
Content copied to clipboard
Register a callback to be invoked when the suggested replies is clicked.
Properties
Link copied to clipboard
protected open var formSubmitButtonClickListener: FormSubmitButtonClickListener
Content copied to clipboard
Link copied to clipboard
protected open var messageTemplateActionHandler: OnMessageTemplateActionHandler
Content copied to clipboard
Link copied to clipboard
protected open var suggestedRepliesClickListener: OnItemClickListener<String>
Content copied to clipboard